package cn.wolfcode.mapper;

import cn.wolfcode.domain.Emp;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface EmpMapper {
    @Select("""
select * from emp
""")
    List<Emp> sellall();
    List<Emp> list(@Param("name") String name,@Param("gender") Integer gender,@Param("begin") Date begin,@Param("end") Date end);

    void batchDelete(@Param("ids") List<Long> ids);

    void save(Emp emp);

    Emp selById(Long id);

    void update(Emp emp);

    Emp login(Emp emp);

}
